import request from '@/utils/request'

// 数据恢复接口：selectLogInspectionDataList
export function selectLogInspectionData(query) {
  return request({
    url: '/system/inspection/selectLogInspectionDataList',
    method: 'get',
    params: query
  })
}

// 查询日志巡检列表
export function listInspection(query) {
  return request({
    url: '/system/inspection/selectLogInspectionDeptList',
    method: 'get',
    params: query
  })
}
// export function listInspection(query) {
//   return request({
//     url: '/system/inspection/list',
//     method: 'get',
//     params: query
//   })
// }

// 查询日志巡检详细
export function getInspection(id) {
  return request({
    url: '/system/inspection/' + id,
    method: 'get'
  })
}

// 新增日志巡检
export function addInspection(data) {
  return request({
    url: '/system/inspection',
    method: 'post',
    data: data
  })
}

// 修改日志巡检
export function updateInspection(data) {
  return request({
    url: '/system/inspection',
    method: 'put',
    data: data
  })
}

// 删除日志巡检
export function delInspection(id) {
  return request({
    url: '/system/inspection/' + id,
    method: 'delete'
  })
}
